local args = ngx.req.get_uri_args()

local gateway_id = args.gateway_id
if not common_util.check_args(1, gateway_id) then
    common_util.exit(200, 0, nil, "101", "param is missing")
end
local topic = gateway_id.."/history"
if not mqtt_util.subscribe(topic) then
    common_util.exit(200, 0, nil, "105", "get history data error")
end
